package com.jk.api;

import com.jk.po.ClentPO;
import com.jk.vo.ClentVo;
import com.jk.vo.ResultInfo;
import org.springframework.web.bind.annotation.*;

/***
 * @ClassName: ClientLoginApi
 * @Description:TODO
 * @Auther: TaiBai
 * @Date: 2021/6/30 9:24
 * @version : V1.0
 */
@RequestMapping("clientLoginService")
@ResponseBody
public interface ClientLoginApi {
    /*
    * @Author  TaiBai
    * @Description //TODO 查询数据库客户信息
    * @Date 15:00 2021/6/30
    * @method  queryClientByName
    * @Param [cusnumber]
    * @return com.jk.vo.ClentVo
    **/
    @PostMapping("queryClientByName/{cusnumber}")
    ClentPO queryClientByName(@PathVariable("cusnumber") Integer cusnumber);
    /*
    * @Author  TaiBai
    * @Description //TODO 注册用户信息至数据库
    * @Date 10:01 2021/7/1
    * @method  saveClient
    * @Param [clentPO]
    * @return com.jk.vo.ResultInfo
    **/
    @PostMapping("saveClient")
    void saveClient(@RequestBody ClentPO clentPO);
    /*
    * @Author  TaiBai
    * @Description //TODO 查询数据库手机号
    * @Date 20:39 2021/7/5
    * @method
    * @Param
    * @return
    **/
    @PostMapping("queryClientByPhone/{cusphone}")
    ClentPO queryClientByPhone(@PathVariable("cusphone") String cusphone);
}

